<?php

defined('o') || exit('404 not find file'); //防跳墙

class control {
	private $templet;
	private $path;
	public function set_templet($templet_temp) {
		$this -> templet = $templet_temp;
		$this -> path = ROOT . '//templet//' . $this -> templet . '//';
	} 
	public function __construct($templet_temp = 'default') {
		$this -> set_templet($templet_temp);
	} 
	public function get_templet() {
		return new templet($this -> path);
	} 
	public function get_model($model, $dir, $file) {
        $ddd =new XML($model);
		return $ddd-> get_val($dir, $file);
	} 
} 

?>